<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>登录</title>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/static/images/favicon.ico">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/libs/layui1.0.9/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/libs/uiframe/frame/static/css/style.css">
    <link rel="icon" href="href="${pageContext.request.contextPath}/static/libs/uiframe/frame/static/image/code.png">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/libs/jquery-1.11.3.min.js"></script>
    <script type="text/javascript">
        (function(){
            if((/msie/.test(navigator.userAgent.toLowerCase()) && !$.support.leadingWhitespace)
                || navigator.userAgent.indexOf("MSIE 9.0") > 0){
                alert('本系统不支持IE9及以下浏览器，请使用Chrome、火狐、360安全浏览器极速模式或IE9以上浏览器');
                window.close();
            }
        })();
    </script>
</head>
<body>
<shiro:guest>
<div class="login-main">
    <header class="layui-elip">后台登录</header>
    <form class="layui-form" action="" method="post">
        <div class="layui-input-inline">
            <input type="text" name="username" required lay-verify="required"
                                                        placeholder="用户名" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required"
                                                        placeholder="密码" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-input-inline login-btn">
            <button class="layui-btn" lay-submit lay-filter="login">登录</button>
        </div>
    </form>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/libs/layui1.0.9/layui.js"></script>
<script type="text/javascript">
    var error = '${error}';
    layui.use(['form','layer'], function () {
        var layer = layui.layer,
            $ = layui.jquery;
        if(error != null && error != ""){
            layer.msg(error, {icon: 5,anim: 6});
        }
    });

</script>
</shiro:guest>
<shiro:user>
<script language="javascript" type="text/javascript">
    window.location.href="${pageContext.request.contextPath}/";
</script>
</shiro:user>


</body>
</html>
